<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"                  
                xmlns:f="http://java.sun.com/jsf/core"  
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="./default_template.xhtml">

    <ui:define name="content">
          <f:view>
            <c:if test='${userController.message != ""}'>
                <div class="alert alert-success">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    #{userController.message}
                </div>
            </c:if>
                
            <h:form rendered="#{userController.utilisateur.typeUser == 'Client'}">
                <div class="row">
                    <div class="span9">
                        Accueil Client!
                    </div>
                </div>
            </h:form>
            <h:form rendered="#{userController.utilisateur.typeUser == 'Admin'}">
                <div class="row">
                    <div class="span9">
                        Accueil Admin!
                    </div>
                </div>
            </h:form>
        </f:view>
    </ui:define>

</ui:composition>
